<?php
$baseUrl = Yii::app()->request->baseUrl;
$model = $this->getNews();
?>
<div class="row-fluid">
    <div class="span7">
        <div class="news-left">
            <?php echo CHtml::link(CHtml::image(Yii::app()->request->baseUrl . '/uploads/gallery/' . $model[0]->image, $model[0]->name) . '<div class="title">' . $model[0]->name . '</div>', array('/' . $model[0]->detail . '-' . $model[0]->id . '.html'));
            ?>
        </div>
    </div>
    <div class="span5">
        <div class="news-right">
            <div class="title"><i class="icon30-title"></i><h4>TIN NỔI BẬT</h4></div>
            <ul class="nav">
                <?php
                foreach ($model as $key => $value) {
                    echo '<li>' . CHtml::link('<i class="icon10-news"></i>' . $value->name, array('/' . $value->detail . '-' . $value->id . '.html')) . '</li>';
                }
                ?>
            </ul>
        </div>
    </div>
</div>